package com.fin.quant.common;

public enum TargetType {
    asset("asset"),
    portfolio("portfolio");


    private String type;
    TargetType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static TargetType getType(String type) {
        for (TargetType t : TargetType.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }
}
